package com.weiweiqin.service.impl;

import java.util.List;

import com.weiweiqin.dao.RoomUserDao;
import com.weiweiqin.model.RoomUser;
import com.weiweiqin.service.RoomUserService;

public class RoomUserServiceImpl implements RoomUserService {

	private RoomUserDao roomUserDao;

	public void save(RoomUser roomUser) {
		roomUserDao.insert(roomUser);
	}

	public RoomUserDao getRoomUserDao() {
		return roomUserDao;
	}

	public void setRoomUserDao(RoomUserDao roomUserDao) {
		this.roomUserDao = roomUserDao;
	}

	public RoomUser get(int joinId) {
		return roomUserDao.get(joinId);
	}

	public void update(RoomUser roomUser) {
		roomUserDao.update(roomUser);

	}

	public List<RoomUser> getByRoomId(int roomId) {
		return roomUserDao.getByRoomId(roomId);
	}

}